package cn.chinaunicom.sdsi.activiti.example.common;

import java.util.List;
import java.util.Map;

import org.activiti.engine.repository.Deployment;
import org.activiti.engine.runtime.ProcessInstance;
import org.activiti.engine.task.Task;
import org.springframework.web.multipart.MultipartFile;

public interface ActivitiCommon {
	
	Deployment deployProcess(MultipartFile file, Deployment deployment);
	
	ProcessInstance startProcess(String processDefinitionKey, String businessKey, Map<String, Object> variables);
	
	void pushProcess(String taskId, String userId, String action, Map<String, Object> variables);
	
	List<Task> queryTask(Map<String, Object> map, int start, int length);
}
